package com.ostrich.cloud.ostrichUserService.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ostrich.cloud.common.result.PageResult;
import com.ostrich.cloud.ostrichUserService.infra.model.Admin;
import com.ostrich.cloud.ostrichUserService.infra.model.UserParent;
import com.ostrich.ostrichUserService.dto.AdminDto;
import com.ostrich.ostrichUserService.param.admin.RegAdminParam;
import com.ostrich.ostrichUserService.param.bussiness.LoginBusParam;

/**
 * <p>
 * 管理员表 服务类
 * </p>
 *
 * @author Lucas
 * @since 2022-10-26
 */
public interface AdminService extends IService<Admin> {

    void addAdmin(RegAdminParam regAdminParam);

    UserParent adminLogin(LoginBusParam loginBusParam);

    void updateAdmin(Integer parentId, String status);

    PageResult<AdminDto> getAllAdmins(Integer current, Integer size, String status);
}
